﻿using FastEventBus.Attribute;
using FastEventBus.Definition;
using FastEventBus.Entity;
using FastUtil.Convert;
using System;
using System.Collections.Generic;
using System.Text;

namespace FastCore.Test.Event
{
    [FastEventChannel(ChannelName = "Mail")]
    public class MailEventHandler : IFastEventHandler
    {
        public bool Check(FastEventParam Event)
        {
            return false;
        }

        public void Handle(FastEventParam Event)
        {
            string Mail = ValueConvert.ConvertToString(Event.GetParam("Mail"));
            Console.WriteLine(string.Format("执行邮件处理！事件ID号:{0},邮箱:{1}", Event.EventID, Mail));
        }
    }
}
